package com.yswy.common.enums;

import com.yswy.common.enums.base.EnumHelper;
import com.yswy.common.enums.base.TypeEnum;
import com.yswy.common.enums.base.TypeEnumDto;

import java.util.List;
import java.util.Map;

public enum TfPlatformEnums implements TypeEnum {

    JLYQ(0, "巨量引擎"),
    CLZT(1, "磁力智投");
    TfPlatformEnums(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private final int code;

    private final String message;

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public static List<TypeEnumDto> kv = EnumHelper.getTypeEnum(values());

    public static void main(String[] args) {
//        TypeEnum tfPlatformEnums = TypeEnum.codeOf(TfPlatformEnums.class , 1);
//        System.out.println(tfPlatformEnums.getCode());
//        System.out.println(tfPlatformEnums.getMessage());
//        String tfPlatform = tfPlatformEnums.toString();
//        System.out.println(tfPlatform);


        TypeEnum tfPlatformEnums = TypeEnum.typeEnumOf(TfPlatformEnums.class , "JLYQ");
        System.out.println(tfPlatformEnums.getCode());
        System.out.println(tfPlatformEnums.getMessage());
        String tfPlatform = tfPlatformEnums.toString();
        System.out.println(tfPlatform);
    }
}
